﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DormMS.Model.Enum;

namespace DormMS.Model
{
    //抽奖奖品类
    public class DrawReward:Entity
    {
        /// <summary> 
        ///   
        /// </summary> 
        public int Id { get; set; }

        /// <summary> 
        /// 抽奖活动Id  
        /// </summary> 
        public int DrawId { get; set; }

        /// <summary> 
        /// 奖品类型：0谢谢参与，1商品，2优惠券，3积分  
        /// </summary> 
        public RewardType RewardType { get; set; }

        /// <summary> 
        /// 奖品对应的实体Id,若是商品，则为商品Id,若是优惠券，则为优惠券Id,若是积分，则为0  
        /// </summary> 
        public int ProductSecpId { get; set; }

        /// <summary> 
        /// 奖品对应的实体名,若为积分，则为“积分奖励”  
        /// </summary> 
        public string ProductName { get; set; }

        /// <summary> 
        /// 中奖数量  
        /// </summary> 
        public int WinningCount { get; set; }

        /// <summary> 
        /// 奖品名称  
        /// </summary> 
        public string RewardName { get; set; }

        /// <summary> 
        /// 商家能发放的奖品数，若用户抽中但是本字段为0，则判定用户未中奖  
        /// </summary> 
        public int Count { get; set; }

        /// <summary> 
        /// 中奖率，精确到百分之一  
        /// </summary> 
        public int WinRate { get; set; }

        /// <summary> 
        ///   排序
        /// </summary> 
        public int Sort { get; set; }

        /// <summary> 
        ///   开始值
        /// </summary> 
        public int StartValue { get; set; }

        /// <summary> 
        ///   结束值
        /// </summary> 
        public int EndValue { get; set; }

        /// <summary>
        /// 奖励积分
        /// </summary>
        public int Points { get; set; }
    }
}
